package br.com.medvagas.web.mb.e;

import java.io.Serializable;
import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

import br.com.medvagas.comum.entidade.UsuarioProfissional;
import br.com.medvagas.comum.util.UtilSpring;
import br.com.medvagas.negocio.facade.e.IPesquisarProfissional;

@ManagedBean
@ViewScoped
public class PesquisarProfissionalMB implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private UsuarioProfissional usuarioProfissional;
	private List<UsuarioProfissional> lsUsuarioProfissional;

	public String exibir() {
		lsUsuarioProfissional = null;
		return "pesquisarprofissional";
	}
	
	public String pesquisar() {
		IPesquisarProfissional pp = (IPesquisarProfissional) UtilSpring.getBean(IPesquisarProfissional.NOME);
		lsUsuarioProfissional = pp.consultar(usuarioProfissional);
		return null;
	}

	public UsuarioProfissional getUsuarioProfissional() {
		return usuarioProfissional;
	}

	public void setUsuarioProfissional(UsuarioProfissional usuarioProfissional) {
		this.usuarioProfissional = usuarioProfissional;
	}

	public List<UsuarioProfissional> getLsUsuarioProfissional() {
		return lsUsuarioProfissional;
	}

	public void setLsUsuarioProfissional(
			List<UsuarioProfissional> lsUsuarioProfissional) {
		this.lsUsuarioProfissional = lsUsuarioProfissional;
	}
	
	
}
